<template>
	<div v-if="text || textT || code" class="base-input-error text-danger flex items-center">
		<base-icon name="mistake"></base-icon>
		<base-text
			class="ml-1 text-sm leading-[18px]"
			:text="text"
			:textT="textT || `httpCode.${code}`" />
	</div>
</template>

<script setup lang="ts">
import BaseIcon from '@/components/base/icon/index.vue'
import BaseText from '@/components/base/text/index.vue'

defineProps({
	text: {
		type: String,
		default: ''
	},
	textT: {
		type: [String, Array],
		default: ''
	},
	code: {
		type: String,
		default: ''
	}
})
</script>
